package eyrolles;

public class Factory {

    public static Object getObject(String className)
            throws ClassNotFoundException,
                   InstantiationException,
                   IllegalAccessException {
        Class classe = Class.forName(className);
        Object objet = classe.newInstance();
        return objet;
    }
}